package com.atguigu.gulimall.ware.dao;

import com.atguigu.gulimall.ware.entity.PurchaseDetailEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author jianPing
 * @email 754844887@qq.com
 * @date 2022-01-14 15:37:47
 */
@Mapper
public interface PurchaseDetailDao extends BaseMapper<PurchaseDetailEntity> {
    void updateStatusByPurchaseId(@Param("purchaseId") Long purchaseId, @Param("status") Integer status);

    void mergePurchase(@Param("purchaseId") Long purchaseId, @Param("items") List<Long> items);
}
